﻿using System;

namespace Secured3D.Tests.Helpers
{
    static public class Generator
    {
        private static Random random = new Random();
        private static string[] domains = { "@gmail.com", "@mail.ru", "@yahoo.com", "@ukr.net", "@yandex.ru" };

        public static string GetName()
        {
            int nameLength = random.Next(5, 12);
            string name = String.Empty;

            for (int index = 0; index < nameLength; index++)
            {
                name += Convert.ToChar(random.Next(97, 122));
            }

            return name;
        }

        public static int GetNumber()
        {
            return random.Next(int.MaxValue);
        }

        public static string GetDomain()
        {
            return domains[random.Next(0, domains.Length - 1)];
        }
    }
}
